Ext.BLANK_IMAGE_URL = 'assets/resources/images/default/s.gif';

Ext.onReady(function() {
	Ext.QuickTips.init();

    var loginDialog = new Ext.ux.form.LoginDialog({
        modal : true,
		url: 'http://localhost/mscp/home/login',
        forgotPasswordLink : 'http://www.microsoft.com/protect/yourself/password/create.mspx',
        cancelButton: 'Close',
        basePath: 'shared/icons',
        listeners: {
        	success:function(){ 
            	Ext.Msg.alert('Status', 'Login Successful!', function(btn, text){
			   if (btn == 'ok'){
		                    var redirect = 'http://localhost/perpus/admin/'; 
		                    window.location = redirect;
		                       }
		        });
		    }
        }
    });

});